<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: OpenMesh::Decimater::Observer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a02701.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="a02698.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenMesh::Decimater::Observer Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="a02701.html" title="Observer class. ">Observer</a> class.  
 <a href="a02701.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00617_source.html">OpenMesh/Tools/Decimater/Observer.hh</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a750859bbf0ed03ba1b6cb2601305e9f6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#a750859bbf0ed03ba1b6cb2601305e9f6">Observer</a> (size_t _notificationInterval)</td></tr>
<tr class="memdesc:a750859bbf0ed03ba1b6cb2601305e9f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an observer.  <a href="#a750859bbf0ed03ba1b6cb2601305e9f6">More...</a><br /></td></tr>
<tr class="separator:a750859bbf0ed03ba1b6cb2601305e9f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5146f52949ea9a510db353f48335259a"><td class="memItemLeft" align="right" valign="top"><a id="a5146f52949ea9a510db353f48335259a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#a5146f52949ea9a510db353f48335259a">~Observer</a> ()</td></tr>
<tr class="memdesc:a5146f52949ea9a510db353f48335259a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a5146f52949ea9a510db353f48335259a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74e3ab359dbb2ce9c4a0d20869071941"><td class="memItemLeft" align="right" valign="top"><a id="a74e3ab359dbb2ce9c4a0d20869071941"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#a74e3ab359dbb2ce9c4a0d20869071941">get_interval</a> () const</td></tr>
<tr class="memdesc:a74e3ab359dbb2ce9c4a0d20869071941"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the interval between notification steps. <br /></td></tr>
<tr class="separator:a74e3ab359dbb2ce9c4a0d20869071941"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aead36d8cb482a9d19d0f485db3e786"><td class="memItemLeft" align="right" valign="top"><a id="a2aead36d8cb482a9d19d0f485db3e786"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#a2aead36d8cb482a9d19d0f485db3e786">set_interval</a> (size_t _notificationInterval)</td></tr>
<tr class="memdesc:a2aead36d8cb482a9d19d0f485db3e786"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the interval between notification steps. <br /></td></tr>
<tr class="separator:a2aead36d8cb482a9d19d0f485db3e786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7279c819cb88693c739f109bc21eaf4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#ae7279c819cb88693c739f109bc21eaf4">notify</a> (size_t _step)=0</td></tr>
<tr class="memdesc:ae7279c819cb88693c739f109bc21eaf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">callback  <a href="#ae7279c819cb88693c739f109bc21eaf4">More...</a><br /></td></tr>
<tr class="separator:ae7279c819cb88693c739f109bc21eaf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c18687cd88bbb0775577673c900d0a1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02701.html#a8c18687cd88bbb0775577673c900d0a1">abort</a> () const</td></tr>
<tr class="memdesc:a8c18687cd88bbb0775577673c900d0a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort callback.  <a href="#a8c18687cd88bbb0775577673c900d0a1">More...</a><br /></td></tr>
<tr class="separator:a8c18687cd88bbb0775577673c900d0a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="a02701.html" title="Observer class. ">Observer</a> class. </p>
<p>Observers can be used to monitor the progress of the decimation and to abort it in between. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a750859bbf0ed03ba1b6cb2601305e9f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a750859bbf0ed03ba1b6cb2601305e9f6">&#9670;&nbsp;</a></span>Observer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">OpenMesh::Decimater::Observer::Observer </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>_notificationInterval</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create an observer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_notificationInterval</td><td>Interval of decimation steps between notifications. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8c18687cd88bbb0775577673c900d0a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c18687cd88bbb0775577673c900d0a1">&#9670;&nbsp;</a></span>abort()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::Decimater::Observer::abort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Abort callback. </p>
<p>After each notification, this function is called by the decimater. If the function returns true, the decimater will stop at a consistent state. Otherwise it will continue.</p>
<dl class="section return"><dt>Returns</dt><dd>abort Yes or No </dd></dl>

</div>
</div>
<a id="ae7279c819cb88693c739f109bc21eaf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7279c819cb88693c739f109bc21eaf4">&#9670;&nbsp;</a></span>notify()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void OpenMesh::Decimater::Observer::notify </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>_step</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>callback </p>
<p>This function has to be overloaded. It will be called regularly during the decimation process and will return the current step.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_step</td><td>Current step of the decimater </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>OpenMesh/Tools/Decimater/<a class="el" href="a00617_source.html">Observer.hh</a></li>
<li>OpenMesh/Tools/Decimater/<a class="el" href="a00614.html">Observer.cc</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
